
//
// 20120825 - AH - Created.
// 20120906 - AH - Missing java doc. 
// 20121111 - AH - testStart(JhutTest) and testEnd(JhutTest).
// 20121113 - AH - testStarts(JhutTest[]).
//

package org.japril.jhut.framework;

/**
 * <p>
 *   Interface for objects that are context for test.
 * </p>
 * @author Arne Halvorsen (AH)
 */
public interface TestContext
{
  /**
   * <p>
   *   Invoked when a tests of a path is about to be perfromed-
   * </p>
   * @param path Path.
   */
  public void testStarts(JhutTest[] path);
  
  /**
   * <p>
   *   Invoked when a test starts.
   * </p>
   * @param test Test starts.
   */
  public void testStart(JhutTest test);
  
  /**
   * <p>
   *   Test invokes to log.
   * </p>
   * @param txt Log text.
   */
  public void log(String txt);
  
  /**
   * <p>
   *   Invoked when a test ends.
   * </p>
   * @param test Test that ended.
   */
  public void testEnd(JhutTest test);
  
}
